package br.com.pauloamorim.modelo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Entity implementation class for Entity: Emprestimo
 *
 */
@Entity
public class Emprestimo implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@EmbeddedId
	private EmprestimoPK chavePrimaria;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column
	private Date dataEmprestimo;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column
	private Date dataDevolucao;
	
	public Emprestimo() {
		super();
	}   

	public Date getDataEmprestimo() {
		return this.dataEmprestimo;
	}

	public void setDataEmprestimo(Date dataEmprestimo) {
		this.dataEmprestimo = dataEmprestimo;
	}   
	public Date getDataDevolucao() {
		return this.dataDevolucao;
	}

	public void setDataDevolucao(Date dataDevolucao) {
		this.dataDevolucao = dataDevolucao;
	}

	public EmprestimoPK getChavePrimaria() {
		return chavePrimaria;
	}

	public void setChavePrimaria(EmprestimoPK chavePrimaria) {
		this.chavePrimaria = chavePrimaria;
	}
   
}
